/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package org.cydonia.ip;

import java.net.UnknownHostException;
import java.util.logging.Level;
import java.util.logging.Logger;
import org.cydonia.ip.interfaces.CaptureIp;

/**
 *
 * @author franklin
 */
public class InternalIp implements CaptureIp {

    public InternalIp(){
        
    }
    
    public String getIpAddress() {
        try {
            return java.net.InetAddress.getLocalHost().getHostAddress();
        } catch (UnknownHostException ex) {
            Logger.getLogger(InternalIp.class.getName()).log(Level.SEVERE, null, ex);
            return "ERRO.";
        }
    }

}
